import React from 'react';
import { Button, Space } from 'antd';

const ButtonArea = ({ buttonItems }) => {
  return (
    <Space>
      {buttonItems.map((item, index) => (
        <Button
          key={index}
          type={item.type || 'default'}
          onClick={item.onClick}
        >
          {item.text}
        </Button>
      ))}
    </Space>
  );
};



export default ButtonArea;